package user;

/**
 *
 * @author Thorsten Ludwig
 */

public enum Role {
    ADMIN,COADMIN,TUTOR,STUDENT,GUEST;

    public int getValue() {
        if (this.toString().equals("ADMIN"))
            return 5;
        else if (this.toString().equals("COADMIN"))
            return 4;
        else if (this.toString().equals("TUTOR"))
            return 3;
        else if (this.toString().equals("STUDENT"))
            return 2;
        else 
            return 1;
    }
}
